Custom Sp Entry
constructor(uiModeType: UiModeType? = null, dpQualifierEntry: DpQualifierEntry? = null, orientation: Orientation = Orientation.DEFAULT, customValue: Number, finalQualifierResolver: DpQualifier? = null, priority: Int, inverter: Inverter = Inverter.DEFAULT, fontScale: Boolean = true)
Parameters
ui Mode Type
The UI mode (CAR, TELEVISION, WATCH, NORMAL). Null for any mode.
dp Qualifier Entry
The Dp qualifier entry (type and value). Null if only UI mode is used.
orientation
The screen orientation (LANDSCAPE, PORTRAIT, DEFAULT).
custom Value
The base Int Sp value to be used if the condition is met.
final Qualifier Resolver
Optional override for the scaling qualifier at resolution time.
priority
The resolution priority. 1 is most specific (UI + Qualifier), 4 is least specific.
inverter
The inverter type to adapt scaling on rotation changes.
font Scale
Whether to respect the system font scale (default true).